<!--<?php print <<<EOT
-->
<div id="breadCrumb">
		<img src="$imgpath/$stylepath/thread/home-old.gif" align="absmiddle" />&nbsp;<a href="$db_bfn" title="$db_bbsname">$db_bbsname</a> &raquo; forum for tips
</div>
<div class="t" style="margin-top:5px;">
<table width="100%" cellspacing="0" cellpadding="0" align="center">
<tr><td class="h" colspan="2">$db_bbsname </td></tr>
<!--
EOT;
if($showlogin){print <<<EOT
-->
<tr class="tr1">
<th><br />
<div style="padding:0px 0px 5px 20px;">You are not logged in or you do not have permission to access this page, you may face some reasons as follows:</div>
<div style="padding:0px 0px 15px 45px; line-height:150%;">
<ol><li>$msg_info<br />
<li>you are not currently a member, please sign in <br></ol></div>
<form action="login.php?" method="post" name="login">
<fieldset style="margin:0% 22% 0% 22%;border:1px solid $tdcolor">
<legend style="padding:0 5px 0 5px;">sign in</legend>
<table width="85%" align="center">
<tr><td width="35%" style="height:30px;padding-left:10px;" onclick="document.login.pwuser.focus();">
<!--
EOT;
$arr_logintypename = array('User Name','UID','Email');
if(count($arr_logintype)==1){
$value = current($arr_logintype);
print <<<EOT
-->
<input type="radio" name="lgt" value="$value" checked />$arr_logintypename[$value]
<!--
EOT;
}elseif(count($arr_logintype)>1){
$i=1;
foreach($arr_logintype as $value){
$str_checked = $i==1? 'checked':'';
$i++;
print <<<EOT
-->
<input type="radio" name="lgt" value="$value" $str_checked />$arr_logintypename[$value]
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
}else{print <<<EOT
-->
<input type="radio" name="lgt" value="$value" checked />User Name
<!--
EOT;
}print <<<EOT
--></td>
<td><input class="input" type="text" size="40" tabindex="9" name="pwuser" /></td></tr>
<tr><td style="height:30px;padding-left:10px;">password</td>
<td><input class="input" type="password" size="40" tabindex="10" name="pwpwd" /></td></tr>
<!--
EOT;
if($db_gdcheck & 2){print <<<EOT
-->
<tr><td style="height:30px;padding-left:10px;">Authentication Code</td>
<td><input class="input" type="text" name="gdcode" size="6" onfocus="try{opencode('menu_gd',this)}catch(e){}" tabindex="11" /><span style="cursor:pointer; margin-left:3px" onclick="this.previousSibling.focus();">Click here to show verification Code</span>
<div class="menu" id="menu_gd" style="visibility:hidden;"><img src="ck.php?" align="absmiddle" style="cursor:pointer;" id="ckcode" alt="it is not clear, change one" /></div></th></td></tr>
<!--
EOT;
}if($db_ifsafecv){print <<<EOT
-->
<tr><td style="height:30px;padding-left:10px;">Security Question</td>
<td><select name="question" onchange="showcustomquest(this.value)" tabindex="12">< option value = "0"> no security question </option> 
	<option Value="1"> my father's birthplace </option> 
	<option Value="2"> birthplace of my mother </option> 
	<option Value="3"> my primary school name </option> 
	<option Value="4"> Medium School My name </option> 
	<option Value="5"> exercise my favorites </option> 
	<option Value="6"> my favorites songs </option> 
	<option Value="7"> my favorites movies </option> 
	<option Value="8"> my favorite color </option> 
	<option Value="-1"> custom question </option> </select>
<input id="customquest" style="display:none" type="text" name="customquest" class="input" size="17" tabindex="13" /></td></tr>
<tr><td style="height:30px;padding-left:10px;">Your answer</td>
<td><input type="text" name="answer" class="input" size="40" tabindex="14"></td></tr>
<!--
EOT;
}if(is_numeric($qkey)){print <<<EOT
-->
<tr><td style="height:30px;padding-left:10px;"></td>
<td>{$db_question[$qkey]}<br /><input class="input" type="text" name="qanswer" tabindex="15" /><input type="hidden" name="qkey" value="$qkey" /></td></tr>
<!--
EOT;
}print <<<EOT
-->
<tr><td style="height:30px;padding-left:10px;">sign in as hidden</td>
<td><input name="hideid" type="radio" value="1" /> Yes &nbsp
<input name="hideid" type="radio" value="0" checked tabindex="16" /> No</td></tr>
</table></fieldset><br />
<center><input class="btn" type="submit" value="sign in" tabindex="17" /></center>
<input type="hidden" name="forward" value="" />
<input type="hidden" name="jumpurl" value="$jumpurl" />
<input type="hidden" name="step" value="2" />
<input type="hidden" name="cktime" value="31536000" /></form><br />
<script language="JavaScript">
document.login.pwuser.focus();
function showcustomquest(qid){
	getObj("customquest").style.display = qid==-1 ? '' : 'none';
}
</script>
</th></tr>
</table></div><br />
<!--
EOT;
}else{print <<<EOT
-->
<tr class="f_one">
<td><center><br /><br /><br />$msg_info<br />
<!--
EOT;
$dejump && $dejump!=1 && include_once PrintEot($dejump);print <<<EOT
-->
<br />
</center><br /><br />
</td></tr>
</table></div><br />
<center><input class="btn" type="button" value="Return to operate" onclick="javascript:history.go(-1);" /></center>
<br /><br />
<!--
EOT;
}footer();
?>-->